package com.xuhuan.example.example061;

/**
 * @author: huan.xu
 * @create: 2023/11/14 10:35
 * @description:
 **/
public class Example061 {

    public static void main(String[] args) {
        Circle circle = new Circle(1);
        System.out.println("图形的名称是："+circle.getName());
        System.out.println("图形的面积是："+circle.getArea());

        Rectangle rectangle=new Rectangle(1,1);
        System.out.println("图形的名称是："+rectangle.getName());
        System.out.println("图形的面积是："+rectangle.getArea());

    }
}
